[RLlib] Add connect four self-play example with pettingzo #33481
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
I closed the other PR as there was an unsigned commit in it. #32492
I made this because I feel it's important to have examples using pettingzoo with selfplay. I can adapt it to another example if that is preferred, I figured it may be helpful to see the differences between it and the openspiel example it's based off. The main difference is that this game uses pygame rendering, and could be extended to take interactive user input, for example (Farama-Foundation/PettingZoo#905)
From old PR:
Related issue number
Checks
As a side note, I've updated my branch to the latest master, and there seem to be linting ssues in other files which I don't want to change, so I've forced the commits using no-verify. I can change them as well but I figured it would be cleaner to only change this single file, and let the linting issues be handled by somebody else. This is the return when I run ci linting tests:
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.